//
//  XMN_ReadCell.m
//  B段项目
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 谢美娜. All rights reserved.
//

#import "XMN_ReadCell.h"

@implementation XMN_ReadCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _backImageView = [[UIImageView alloc]init];
        [self addSubview:_backImageView];
        
        _label = [[UILabel alloc]init];
        _label.textColor = [UIColor whiteColor];
        _label.layer.masksToBounds = YES;
        _label.layer.cornerRadius = 5;
        _label.font = [UIFont systemFontOfSize:13];
        _label.backgroundColor = [UIColor colorWithRed:.5 green:.5 blue:.5 alpha:.5];
        [self addSubview:_label];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _backImageView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    _backImageView.layer.masksToBounds = YES;
    _backImageView.layer.cornerRadius = 5;
    _label.frame = CGRectMake(5, self.contentView.frame.size.height - 20, self.contentView.frame.size.width - 10, 15);
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
